#include<signal.h>
#include<stdio.h>
#include<stdlib.h>

void my_func(int sign_no)
{
	if(sign_no == SIGINT)
		printf("I have get SIGINT \n");

	if(sign_no == SIGQUIT)
                printf("I have get SIGQUIT \n");

}


int main()
{
	printf("Waiting for Signal \n");
	signal(SIGINT,my_func);
	signal(SIGQUIT,my_func);
	pause();
	exit(0);

}
